/**
* 移动端适配页面
*/
.mobile-body-mode {
  padding-right: 0 !important;//解决打开弹窗,因滚动条产生的边距导致的页面抖动
  .el-message{
    width: 100vw;
    min-width: auto !important;
    word-break: break-all;
  }
  .el-message-box__wrapper, .el-dialog__wrapper {
    margin: 0 8px;
  }
  .el-dialog__wrapper {
    ::-webkit-scrollbar {
      width: 8px !important;
      height: 8px !important;
    }
    ::-webkit-scrollbar-thumb {
      border-radius: 4px !important;
    }
    .el-dialog__body {
      padding: 12px !important;
    }
  }
  .el-table:not(.default-scroll-table) {
    .el-table__body-wrapper {
      @include scrollBar($x: auto, $y: scroll, $width: 6px !important)
    }
  }
  .mobile-el-dialog-form {
    .el-dialog {
      .width240, .el-select, .el-cascader, .el-date-editor, .el-input, .el-autocomplete {
        width: 100% !important;
        .el-input__inner {
          width: 100% !important;
          min-width: unset !important;
        }
        .el-textarea__inner {
          min-width: unset !important;
          width: 100% !important;
        }
      }
    }
  }
  .el-dialog__wrapper, .global-mobile-dialog, .mobile-el-dialog {
    .el-dialog {
      width: 100% !important;
      .el-dialog__close {
        right: -5px !important;
        top: -52px !important;
      }
    }
  }
  .el-input {
    .el-input__inner::placeholder {
      color: #DDDDDD;
    } 
  }
  .is-checked {
    .el-checkbox__label {
      color: #333333 !important;
      font-weight: bold !important;
    }
    .el-checkbox__inner::after {
      font-weight: bold !important;
    }
  }
  .mobile-small-padding {
    padding: 12px !important;
  }
  .mobile-radius {
    border-radius: 6px !important;
  }
}
.table-dropdown-img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  img {
    width: 100%;
    height: 100%;
  }
}
// 表单适配
.mobile-el-form {
  .el-row {
    .el-col {
      width:  100% !important;
      border-right: none !important;
    }
  }
  .el-col {
    width:  100% !important;
    border-right: none !important;
    .el-form-item__content {
      border-right: none !important;
    }
  }
}
// 列表适配
.mobile-table {
  margin: 0 !important;
  padding: 12px 0 0 !important;
  & td {
    padding: 0 !important;
  }
  .mobile-data {
    margin: 0px 0px 12px 12px !important;
  }
}
.mobile-el-pagination {
  .el-pagination {
    padding: 2px 5px !important;
  }
}
.mobile-min-height {
  min-height: calc(100vh - 121px) !important;
}
.mobile-pt {
  padding-top: 12px !important;
}
.mobile-detail-wrap {
  margin: 12px 12px 62px !important;
  border-radius: 6px !important;
  .no-margin {
    margin: 0 !important;
  }
  .small-padding {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .no-padding {
    padding: 0 !important;
  }
}
.el-scrollbar {
  .el-scrollbar__bar {
    opacity: 1 !important;
  }
}
.panel-mobile {
  max-width: 100% ;
}
// 移动端组件适配
// el-cascader
.mobile-cascader {
 .el-cascader__dropdown {
    max-width: 100%;
    overflow-x: auto;
  }
  .el-cascader__search-input {
    min-width: 20px !important;
  }
  .el-message-box {
    width: 100% !important;
  }
  .ellips-cascader {
    .el-cascader-node__label {
      .inline-tag {
        max-width: 110%;
      }
    }
  }
}

.iPhone-class .el-cascader__dropdown > .el-cascader-panel > .el-scrollbar {
	overflow: visible !important;
}
.iPhone-class {
  .el-select-dropdown__wrap.el-scrollbar__wrap {
    margin: 0 !important;
  }
}
// data-pick
.mobile-date-pick-global {
  .el-date-range-picker {
    width: 100% !important;
    display: flex;
    flex-wrap: wrap;
    .el-picker-panel__body {
      width: 100%;
      min-width: 100% !important;
      max-height: 80vh;
      overflow-y: auto;
    }
    .el-date-range-picker__time-header, .el-picker-panel__content, .el-picker-panel__footer {
      width: 100% !important;
    }
    .el-icon-arrow-right {
      display: none !important;
    }
    .el-date-range-picker__time-header {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      &.is-right {
        margin-top: 12px;
      }
    }
  }
}

// el-select
.mobile-select-global {
  .el-select-dropdown {
    max-width: 100%;
  }
}
// 创建页适配
.mobile-create {
  border-radius: 6px;
  margin: 12px 12px 62px !important;
  .no-required { //用于对齐非必填字段
    .el-form-item__label {
      padding-left: 10px !important;
    }
  }
  .mobile-components, .width240, .el-select, .el-cascader, .el-date-editor, .el-input, .el-autocomplete {
    width: 100% !important;
  }
  .el-input__inner {
    width: 100% !important;
    min-width: unset !important;
  }
  .el-textarea__inner {
    min-width: unset !important;
    width: 100% !important;
  }
  .el-row {
    .el-col {
      width:  100% !important;
    }
  }
  .response-el-row {
    .el-form-item {
      .el-form-item__content {
        width: unset;
      }
    }
  } 
  .mobile-create-flex {
    flex-wrap: wrap;
  }
}
